<template>
  <div>
    <comment-new :objectId="objectId"></comment-new>
    <comment-list :objectId="objectId"></comment-list>
  </div>
</template>

<script>
import CommentNew from '../components/comment/New'
import CommentList from '../components/comment/List'
export default {
  components: {
    CommentNew,
    CommentList
  },

  data() {
    return {
      objectId: null
    }
  },
  mounted() {
    this.objectId = this.$route.params.id
  },
  activated() {
    this.objectId = this.$route.params.id
  }
}
</script>

<style>
</style>
